package cqrtplm.entity;

import cqrtplm.log.ObjectComparator;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

@Data
@Entity
@Table(name = "RT_CERT_BASECERT")
public class RtCertBaseCertDO {
    @Id
    @Column(name = "ID", length = 100, nullable = false)
    private String id;

    @Column(name = "CERTNAME", length = 100, nullable = false)
    private String certname;

    @Column(name = "CERTDESCR", length = 500)
    private String certdescr;

    @Column(name = "REQUIREDAREA", length = 100)
    private String requiredarea;

    @Column(name = "MUSTUSE", length = 2)
    private String mustuse;

    @Column(name = "PRODUCTLINE", length = 50)
    private String productline;

    @Column(name = "SALESAREAS", length = 500)
    private String salesareas;

    @Column(name = "AVAILABLECERT", length = 500)
    private String availablecert;

    @Column(name = "CHECKENGRAVING", length = 2)
    private String checkengraving;

    @Column(name = "REMARK", length = 500)
    private String remark;

    @Column(name = "CREATEUSERID", length = 100)
    @ObjectComparator.RTIgnore
    private String createuserid;

    @Column(name = "CREATEUSERNAME", length = 100)
    @ObjectComparator.RTIgnore
    private String createusername;

    @Column(name = "CREATETIME")
    @ObjectComparator.RTIgnore
    private Timestamp createtime;

    @Column(name = "UPDATEUSERID", length = 100)
    @ObjectComparator.RTIgnore
    private String updateuserid;

    @Column(name = "UPDATEUSERNAME", length = 100)
    @ObjectComparator.RTIgnore
    private String updateusername;

    @Column(name = "UPDATETIME")
    @ObjectComparator.RTIgnore
    private Timestamp updatetime;

    @Column(name = "STATE", length = 5)
    private String state;

    @Column(name = "FROZENTIME")
    private Timestamp frozentime;
}
